package com.fuqi.android.zhongcai.business.shuig.request.api;


import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.fuqi.android.zhongcai.base.ApiUrl;
import com.fuqi.android.zhongcai.business.shuig.request.result.CheckInfoListResult;
import com.fuqi.framework.network.api.AbsRequest;
import com.fuqi.framework.network.params.BaseParams;


/*
*  查询抽查列表（罚单或所有抽查）接口
* */


public class CheckInfoListApi extends AbsRequest<CheckInfoListApi.CheckInfoListParams, CheckInfoListResult[]> {

    public CheckInfoListApi(CheckInfoListParams checkInfoListParams, Listener<CheckInfoListResult[]> listener, ErrorListener errorListener) {
        super(Method.POST, ApiUrl.getCheckInfoListUrl(), checkInfoListParams, listener, errorListener, CheckInfoListResult[].class);
    }

    public static class CheckInfoListParams extends BaseParams {

        public CheckInfoListParams(String isPunish, String startDate,String endDate) {

                //  1 只查罚单 0  所有抽查
                put("isPunish", isPunish);
                put("startDate", startDate);
                put("endDate", endDate);
        }
    }


}
